import request from '@/utils/request'
enum API {
  SKULIST_URL = '/admin/product/list/',
  ONSALE_URL = '/admin/product/onSale/',
  CANCLESALE_URL = '/admin/product/cancelSale/',
  SKUINFO_URL = '/admin/product/getSkuInfo/'
}
export const reqSkuList = (page: number, limit: number) => {
  return request.get<any, any>(API.SKULIST_URL + `${page}/${limit}`)
}
export const reqOnSale = (skuId: string) => {
  return request.get<any, any>(API.ONSALE_URL + `${skuId}`)
}
export const reqCancelSale = (skuId: string) => {
  return request.get<any, any>(API.CANCLESALE_URL + `${skuId}`)
}
export const reqSkuInfo = (skuId: string) => {
  return request.get<any, any>(API.SKUINFO_URL + `${skuId}`)
}
